import Vue from 'vue'
import Router from 'vue-router'
import Try from '../view/Try'
import Plan from "../view/Plan";
import UserInformation from "../view/UserInformation";
import ReciteWord from "../view/ReciteWord";
import ReciteChineseToEnglish from "../view/ReciteChineseToEnglish";
import ReciteEnglishToChinese from "../view/ReciteEnglishToChinese";
import ReviewChineseToEnglish from "../view/ReviewChineseToEnglish";
import ReviewEnglishToChinese from "../view/ReviewEnglishToChinese";
import WordsMean from "../view/WordsMean";
import ReviewWord from "../view/ReviewWord";
import HomePage from "../view/HomePage";
import login from '../view/login'
import register from "../view/register";
import retrieve from "../view/retrieve";
import CarouseRecite from "../view/CarouseRecite";
Vue.use(Router)




export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
      meta: {
        keepAlive: false
      }
    },{
      path: '/Try',
      name: 'Try',
      component: Try,
      meta: {
        keepAlive: true
      }
    },{
      path: '/Plan',
      name: 'Plan',
      component: Plan,
      meta: {
        keepAlive: true
      }
    },{
      path: '/UserInformation',
      name: 'UserInformation',
      component: UserInformation,
      meta: {
        keepAlive: true
      }

    },{
      path: '/HomePage',
      name: 'HomePage',
      component: HomePage,
      meta: {
        keepAlive: true
      }

    },{
      path:'/ReciteWord',
      name:'ReciteWord',
      component:ReciteWord,
      meta: {
        keepAlive: true
      }

    },

    {
      path:'/ReciteChineseToEnglish',
      name:'ReciteChineseToEnglish',
      component:ReciteChineseToEnglish,
      meta: {
        keepAlive: true
      }

    },

    {
      path:'/ReciteEnglishToChinese',
      name:'ReciteEnglishToChinese',
      component:ReciteEnglishToChinese,
      meta: {
        keepAlive: true
      }
    },

    {
      path:'/ReviewChineseToEnglish',
      name:'ReviewChineseToEnglish',
      component:ReviewChineseToEnglish,
      meta: {
        keepAlive: true
      }

    },

    {
      path:'/ReviewEnglishToChinese',
      name:'ReviewEnglishToChinese',
      component:ReviewEnglishToChinese,
      meta: {
        keepAlive: true
      }
    },

    {
      path:'/WordsMean',
      name:'WordsMean',
      component:WordsMean,
      meta: {
        keepAlive: true
      }

    },{
      path:'/WordsMean',
      name:'WordsMean',
      component:WordsMean,
      meta: {
        keepAlive: true
      }

    },{
      path:'/ReviewWord',
      name:'/ReviewWord',
      component:ReviewWord,
      meta: {
        keepAlive: true
      }

    },
    {
      path:'/CarouseRecite',
      name:'/CarouseRecite',
      component:CarouseRecite,
      meta: {
        keepAlive: true
      }

    }
    ,{
      path: '/register',
      name: 'register',
      component: register,
      meta: {
        keepAlive: false
      }
    },

    {
      path: '/retrieve',
      name: 'retrieve',
      component: retrieve,
      meta: {
        keepAlive: false
      }
    }
  ]
})


